<?php 
// ----------------------------------------------
# News Constants
$NEWS_CATEGORY_ALIAS	= 'news';
$NEWS_LIMIT	= 4;

// ----------------------------------
// Lấy 4 tin mới nhất
App::import('Model', 'news.News');
$this->News = ClassRegistry::init('News');
$top_news = $this->News->getNewestNews($NEWS_CATEGORY_ALIAS, array('title', 'alias', 'ExtraNewsField.created_date'), $NEWS_LIMIT, array('contain' => array('ExtraNewsField'), 'order' => 'ExtraNewsField.created_date desc'));
$this->set('top_news', $top_news);
?>
<h2 class="title_favourite_tour"><?php __("Tin Mới Nhất")?></h2>
<ul class="list_new_news">
	<?php foreach ($top_news as $item):?>
	<li><a href="<?php echo $html->url(array('plugin' => 'news', 'controller' => 'news', 'action' => 'view', $item['News']['alias'], $NEWS_CATEGORY_ALIAS));?>"><?php echo $item['News']['title']?></a></li>
	<?php endforeach;?>
</ul>